package com.shensi.appCollect.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class ShareRecoveryRecord implements Serializable {

    @ApiModelProperty(value = "记录id")
    private Long recordId;

    @ApiModelProperty(value = "主卡id")
    private Long mainId;

    @ApiModelProperty(value = "副卡id")
    private Long deputyId;

    @ApiModelProperty(value = "副卡用户手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "操作类型：1:分配，2:回收")
    private String operationType;

    @ApiModelProperty(value = "添加副卡规则类型：1:共享，2:分配")
    private String cardRuleType;

    @ApiModelProperty(value = "额度生效类型：1:单次，2:永久, 3:每月")
    private String effectiveType;

    @ApiModelProperty(value = "操作金额")
    private BigDecimal operationAmt;

    @ApiModelProperty(value = "余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "删除标识 0：未删除,1：删除")
    private String isDeleted;

    @ApiModelProperty(value = "分配回收记录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getMainId() {
        return mainId;
    }

    public void setMainId(Long mainId) {
        this.mainId = mainId;
    }

    public Long getDeputyId() {
        return deputyId;
    }

    public void setDeputyId(Long deputyId) {
        this.deputyId = deputyId;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone == null ? null : mobilePhone.trim();
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType == null ? null : operationType.trim();
    }

    public String getCardRuleType() {
        return cardRuleType;
    }

    public void setCardRuleType(String cardRuleType) {
        this.cardRuleType = cardRuleType == null ? null : cardRuleType.trim();
    }

    public String getEffectiveType() {
        return effectiveType;
    }

    public void setEffectiveType(String effectiveType) {
        this.effectiveType = effectiveType == null ? null : effectiveType.trim();
    }

    public BigDecimal getOperationAmt() {
        return operationAmt;
    }

    public void setOperationAmt(BigDecimal operationAmt) {
        this.operationAmt = operationAmt;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}